package com.authine.cloudpivot.web.api.errors;

//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

import java.util.Objects;

/**
 * @author chenjq
 */
public class ExcelError {

    /**
     * 错误行
     */
    private int row;

    /**
     * sheet页名
     */
    private String sheetName;

    /**
     * 消息
     */
    private String message;

    public ExcelError(int row, String sheetName, String message) {
        this.row = row;
        this.sheetName = sheetName;
        this.message = message;
    }

    public ExcelError(String message) {
        this.message = message;
    }

    public ExcelError(int row, String message) {
        this.row = row;
        this.message = message;
    }

    public int getRow() {
        return this.row;
    }

    public String getSheetName() {
        return this.sheetName;
    }

    public String getMessage() {
        return this.message;
    }

    public void setRow(int row) {
        this.row = row;
    }

    public void setSheetName(String sheetName) {
        this.sheetName = sheetName;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof ExcelError)) {
            return false;
        } else {
            ExcelError other = (ExcelError)o;
            if (!other.canEqual(this)) {
                return false;
            } else if (this.getRow() != other.getRow()) {
                return false;
            } else {
                Object this$sheetName = this.getSheetName();
                Object other$sheetName = other.getSheetName();
                if (this$sheetName == null) {
                    if (other$sheetName != null) {
                        return false;
                    }
                } else if (!this$sheetName.equals(other$sheetName)) {
                    return false;
                }

                Object this$message = this.getMessage();
                Object other$message = other.getMessage();
                if (this$message == null) {
                    if (other$message != null) {
                        return false;
                    }
                } else if (!this$message.equals(other$message)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof ExcelError;
    }

    @Override
    public int hashCode() {
        return Objects.hash(row, sheetName, message);
    }

    @Override
    public String toString() {
        return "ExcelError(row=" + this.getRow() + ", sheetName=" + this.getSheetName() + ", message=" + this.getMessage() + ")";
    }
}

